﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ElectronicRecords.Models.ViewProcedure>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Редактировать процедуру
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Редактировать процедуру</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Карточка процедуры</legend>
  
            <div class="editor-label">
                <%: Html.Label("Название") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.p.Name) %>
                <%: Html.ValidationMessageFor(model => model.p.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Примечание") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.p.Description) %>
                <%: Html.ValidationMessageFor(model => model.p.Description) %>
            </div>
            
            
            
            <div class="editor-label">
                <%: Html.Label("Продолжительность") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.p.Length) %>
                <%: Html.ValidationMessageFor(model => model.p.Length) %>
            </div>
            <div class="editor-label">
                <%: Html.Label("Оборудование") %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model=>model.equipments,Model.equipments) %>
            </div>                      
            
            
            
            <p>
                <input type="submit" value="Сохранить" class="g-button" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "List", new { }, new { @class = "g-button" })%>
    </div>

</asp:Content>

